package asia.huangxi.project.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author huangxi
 * @class GradleOrder
 * @description GradleOrder
 * @create 2022/10/21 3:12 下午
 */
@Data
@Entity
@Table(name = "GRADLE_ORDER")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GradleOrder implements Serializable {

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "total_amount")
    private BigDecimal totalAmount;

    @Column(name = "user_id")
    private Long userId;

    /**
     * 发货状态，0-待发货，1-已发货
     */
    @Column(name = "status")
    private Integer status;

    @Column(name = "address")
    private String address;

    @Column(name = "create_time")
    private Date createTime;
}
